import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import component from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component,
        options: getBaseFormItem({
            type: 'textarea', order: -6988, name: '多行文本框', icon: 'FontSizeOutlined',xtype:'TextArea',
            tpls: [
                getInputTpl('autoSize', { type: "switch", label: "自适应内容高度" }),
                getInputTpl('placeholder', { label: "提示文本" }),
                getInputTpl('rows', { label: "行数",type: "number" }),
                getInputTpl('maxLength', { label: "最大字符数",type: "number" }),
            ]
        })
    };
});
